package com.bi.bitest.bao.entity.discoverrecommend;

/**
 * Created
 * Author:bi[FR]
 * Date:15-10-22
 */

import com.bi.bitest.bao.entity.Parsable;
import org.json.JSONException;
import org.json.JSONObject;

/**
 * 一个听单数据实体
 */
public class SpecialItem implements Parsable {


    /**
     * columnType : 1
     * specialId : 348576867969
     * title : 5个如雷贯耳的脱口秀，高智商必听！
     * subtitle : ew
     * footnote : 5张专辑
     * coverPath : http://fdfs.xmcdn.com/group14/M04/4E/68/wKgDY1WyIl_jgde2AAG79hZ3Ml4209_mobile_small.jpg
     * contentType : 1
     */

    private int columnType;
    private long specialId;
    private String title;
    private String subtitle;
    private String footnote;
    private String coverPath;
    private String contentType;



    @Override
    public void parseJSON(JSONObject json) throws JSONException {

        if(json!=null){
            specialId=json.getLong("specialId");
            title=json.getString("title");
            subtitle=json.optString("subtitle");
            columnType=json.optInt("columnType");
            footnote=json.optString("footnote");
            coverPath=json.optString("coverPath");
            contentType=json.optString("contentType");
        }

    }

    public void setColumnType(int columnType) {
        this.columnType = columnType;
    }

    public void setSpecialId(long specialId) {
        this.specialId = specialId;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public void setFootnote(String footnote) {
        this.footnote = footnote;
    }

    public void setCoverPath(String coverPath) {
        this.coverPath = coverPath;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public int getColumnType() {
        return columnType;
    }

    public long getSpecialId() {
        return specialId;
    }

    public String getTitle() {
        return title;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public String getFootnote() {
        return footnote;
    }

    public String getCoverPath() {
        return coverPath;
    }

    public String getContentType() {
        return contentType;
    }





}
